package cn.itcast.nems.config;

import cn.itcast.nems.manager.activity.BpmProperties;
import cn.itcast.nems.manager.activity.BpmWorkflowManager;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * activity work flow 初始化配置
 * </p>
 *
 * @author zhouwei
 * @since 2023/11/7 11:54 AM
 **/
@Configuration
@EnableConfigurationProperties(BpmProperties.class)
public class BpmConfig {
    @Bean
    BpmWorkflowManager bpmWorkflowManager(BpmProperties bpmProperties) {
        return new BpmWorkflowManager(bpmProperties);
    }
}
